package com.sanyang.lawyer.mapper.audit;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sanyang.lawyer.entity.Audit;
import com.sanyang.lawyer.entity.Case_audit;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;


public interface AuditMapper extends BaseMapper<Audit> {
    
    //添加一条数据
    public void insertOne(Audit audit);

    //完成流程并添加数据
    public void ComplateInsert(Audit audit);

    //修改流程审核的状态
    @Update("update audit set state = #{state}")
    public void update_state(Audit audit);

    //根据流程id查询出流程的审批记录
    public List<Audit> findProcessListByProcessid(String processid);

    //用印统计
    public List<Map<String,Object>> listStatistical(Map map);
    public Integer listcount(Map map);
    public List<Audit> listall();


}
